extends Node
class_name GameInputEvent

static var direction:Vector2

static func movenment_input() ->Vector2:
	if Input.is_action_pressed("move_up"):
		direction = Vector2.UP
	elif Input.is_action_pressed("move_down"):
		direction = Vector2.DOWN
	elif Input.is_action_pressed("move_left"):
		direction = Vector2.LEFT
	elif Input.is_action_pressed("move_right"):
		direction = Vector2.RIGHT
	else:
		direction = Vector2.ZERO
	return direction
	
static func is_movenment_input() ->bool:
	return !direction == Vector2.ZERO
